﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;


namespace Com_Orion_Test_DLL
{
    public class TestProgramInfo
    {
        private string programName = "";
        private string programFullPath = "";
        private string programArg = "";

        [XmlAttribute("ProgramName")]
        public string ProgramName
        {
            get { return this.programName; }
            set { this.programName = value; }
        }
        [XmlElement("ProgramFullpath")]
        public string ProgramFullPath
        {
            get { return this.programFullPath; }
            set { this.programFullPath = value; }
        }
        [XmlElement("ProgramArg")]
        public string ProgramArg
        {
            get { return this.programArg; }
            set { this.programArg = value; }
        }
           
       
        public void Run()
        {
            if (!String.IsNullOrEmpty(this.programFullPath))
                System.Diagnostics.Process.Start(this.programFullPath,this.programArg);
        }
            
    }
}
